{load header}
<!--/H-->
    <!-- 内容区 -->
    <div id="main-content">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>
        <div id="main" class="main">
            
            <!-- nav -->
                        <!-- nav -->
            

            
	<div class="main-title">
        <h2>修改管理员</h2>
    </div>
    <form action="" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">用户名<span class="check-tips">（用户名会作为登录的凭证）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="username" maxlength="20" value="{$item['username']}">
                <input type="hidden" name="rusername" value="{$item['username']}"/>
            </div>
        </div>
		<div class="form-item">
            <label class="item-label">登录密码<span class="check-tips">（用户名登录本系统时的密码）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="password" value="">
            </div>
        </div>
	
		<div class="form-item">
            <label class="item-label">选择分组<span class="check-tips">（选择管理人员的用户角色）</span></label>
            <div class="controls">
                <select name="group_id">
					<option value="">-请选择-</option>
					{$group_select}
				</select>
            </div>
        </div>
        <!--
		<div class="form-item">
            <label class="item-label">选择部门<span class="check-tips">（选择管理人员的部门）</span></label>
            <div class="controls">
                <select name="department_id">
					<option value="">-请选择-</option>
					{loop $listtree $key $one}
						<option value="{$one['id']}">{$one['name']}</option>
						{if $one['son']}
						{loop $one['son'] $key $son}
						<option value="{$son['id']}">---{$son['name']}</option>
						{/loop}
						{/if}
					{/loop}
				</select>
            </div>
       
        </div> -->
		<div class="form-item">
            <label class="item-label">用户姓名<span class="check-tips">（管理员真实姓名）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="truename" value="{$item['truename']}">
            </div>
        </div>
		<!--
		<div class="form-item">
            <label class="item-label">用户昵称<span class="check-tips">（作为默认的昵称）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="nickname" value="">
            </div>
        </div>
		-->
        <div class="form-item">
            <label class="item-label">手机号码<span class="check-tips">（用于接收短信通知）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="mobile" value="{$item['mobile']}">
            </div>
        </div>
				
		<div class="form-item">
            <label class="item-label">用户QQ<span class="check-tips">（作为网上联系的工具）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="qq" value="{$item['qq']}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">邮箱<span class="check-tips">（用户邮箱，用于找回密码等安全操作）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="email" value="{$item['email']}">
            </div>
        </div>
		
		<div class="form-item">
            <label class="item-label">状态<span class="check-tips">（用户状态）</span></label>
            <div class="controls">
                <select name="state">
					<option<!--{if ($item['state']=='1')}--> selected<!--{/if}--> value="1">正常</option>
					<option<!--{if ($item['state']=='0')}--> selected<!--{/if}--> value="0">禁用</option>
				</select>
            </div>
        </div>
                <input type="hidden" name="id" value="{$item['id']}"/>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
			</div>
	</div>
<!--F-->{load footer}